//
//  UIButton-Extension.swift
//  LZFPhotoBrowser
//
//  Created by 梁梓烽 on 16/7/27.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title:String ,color:UIColor,fontSize:CGFloat,backColor:UIColor)
    {
        self.init()
        setTitle(title, forState: .Normal)
        setTitleColor(color, forState: .Normal)
        titleLabel?.font=UIFont.systemFontOfSize(fontSize)
        backgroundColor = backColor
    
    }
}